<html>
<head>
<meta http-equiv=content-type content="text/html; charset=utf-8">
<title>Topology</title>

<!--[if IE]>
<script type="text/javascript" src="../js/excanvas.js"></script>
<![endif]-->
<script type="text/javascript" src="../js/ajax_class.js"></script>
<script type="text/javascript" src="../js/ObjTree.js"></script>
<script type="text/javascript" src="../js/topol_class3.js"></script>



<style type="text/css">
canvas
{
	margin-left : 50px;
	/*
	border-top: solid red;
	border-right: solid red;
	border-bottom: solid red;
	border-left: solid red;
	*/
	
}
/*
#cv_page
{
	margin-left : 50px;
	
	border-top: solid green;
	border-right: solid green;
	border-bottom: solid green;
	border-left: solid green;
}

*/

</style>

</head>


<body onload="doit();">

<div>
	<a href="../userverify.php">Back to VR</a>&nbsp;
	<a href="viewtopol.html">Geographical topology</a>&nbsp;
	<a href="viewtopol2.html">OSPF topology</a>&nbsp;
	<a href="../script/topol_export.php">Export topology</a>&nbsp;
	<a href="../script/topol_recover.php">Recover topology</a>
</div>

<div id="cv_page"></div>


<script type="text/javascript">
var topol_draw = new topology_drawing();
topol_draw.init_canvas("topol");

function doit ()
{
		function time_out ()
		{
			//alert("nihao");
			var ajax = new Ajax(function(response)
					{ 
					//alert(topol_draw.xml_src);
					topol_draw.xml_src = response;
					topol_draw.create_router();
					topol_draw.draw_routers();
					}, "responseXML");
			ajax.get("http://192.168.237.217/topol_view_pages/get_topol.php", "topol=bgp");
		}
	time_out();
	//setInterval(time_out, 5000);
	setTimeout(doit, 3000);
	//alert("wan");
}

</script>


</body>

</html>

